﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" Async="true" AutoEventWireup="true"
   ValidateRequest="false"  CodeFile="edit-profile.aspx.cs" Inherits="user_edit_profile" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpHeader" runat="Server">
    <div class="grey-bg-3">
        <div class="radius-box">
            <div class="pw-re-col-1">
                <div class="text-heading-black">
                    <%=GetGlobalResourceObject("General", "EditProfile")%></div>
                    <div>
                    <asp:Label ID="lblErrorMessage" runat="server" ForeColor="Red"></asp:Label>
                    <asp:ValidationSummary ID="vsProfile" runat="server" ValidationGroup="profile"
                        ShowSummary="True" HeaderText="<%$ Resources:General,RequiredValidation%>" CssClass="error-msg" />
                </div>
                <br />
                <div class="pw-row-1">
                    <span style="color: #FF0004">*</span><%=GetGlobalResourceObject("General", "Name")%>:</div>
                <div class="pw-col-1">
                    <asp:TextBox runat="server" ID="txtName" CssClass="pw-fields" MaxLength="50"></asp:TextBox>
                    <cc1:textboxwatermarkextender id="tbwName" runat="server" targetcontrolid="txtName"
                        watermarkcssclass="pw-fields" watermarktext="<%$Resources:General,EnterName%>">
                                </cc1:textboxwatermarkextender>
                    <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName" CssClass="validationError"
                        Display="Dynamic" ErrorMessage="" ValidationGroup="profile"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revName" runat="server" ControlToValidate="txtName" CssClass="validationError"
                        ErrorMessage="" ValidationExpression="^[\p{L}\d]*[^#$%^&*():/\.'^<>]*$" ValidationGroup="profile"></asp:RegularExpressionValidator>
                </div>
                <div class="pw-row-1">
                    <span style="color: #FF0004">*</span><%=GetGlobalResourceObject("General", "Email")%>:</div>
                <div class="pw-col-1">
                    <asp:TextBox runat="server" ID="txtEmail" CssClass="pw-fields" MaxLength="70"></asp:TextBox>
                    <cc1:textboxwatermarkextender id="tbwEmail" runat="server" targetcontrolid="txtEmail"
                        watermarkcssclass="pw-fields" watermarktext="<%$Resources:General,EnterEmail%>">
                                </cc1:textboxwatermarkextender>
                    <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail"
                        Display="Dynamic" ErrorMessage="" ValidationGroup="profile" CssClass="validationError"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
                        ErrorMessage="" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ValidationGroup="profile" CssClass="validationError"></asp:RegularExpressionValidator>
                </div>
                <div class="pw-row-1">
                    <span style="color: #FF0004">*</span><%=GetGlobalResourceObject("General", "MobileNumber")%>:<br />
                </div>
                <div class="pw-col-1">
                    <asp:TextBox runat="server" ID="txtMobile" CssClass="pw-fields" MaxLength="10"></asp:TextBox>
                    <cc1:textboxwatermarkextender id="tbwMobile" runat="server" targetcontrolid="txtMobile"
                        watermarkcssclass="pw-fields" watermarktext="<%$Resources:General,EnterMobile%>">
                                </cc1:textboxwatermarkextender>
                    <asp:RequiredFieldValidator ID="rfvMobile" runat="server" ControlToValidate="txtMobile" CssClass="validationError"
                        Display="Dynamic" ErrorMessage="" ValidationGroup="profile"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revMobile" runat="server" ControlToValidate="txtMobile" CssClass="validationError"
                        ErrorMessage="" ValidationExpression="0[5-9]\d{8}" ValidationGroup="profile"></asp:RegularExpressionValidator>
                    <div style="padding-left: 140px; padding-bottom: 10px; font-size: 12px;">
                        <%=GetGlobalResourceObject("General", "MobileExample")%></div>
                </div>
                <div class="pw-row-1">
                    <span style="color: #FF0004">*</span><%=GetGlobalResourceObject("General", "DOB")%>:</div>
                <asp:DropDownList ID="ddlDay" runat="server" CssClass="pw-row-2">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvDay" ControlToValidate="ddlDay" runat="server" CssClass="validationError"
                    ValidationGroup="profile" ErrorMessage="" InitialValue="-1"></asp:RequiredFieldValidator>
                <asp:DropDownList ID="ddlMonth" runat="server" CssClass="pw-row-3">
                    <asp:ListItem Value="-1" Text="<%$ Resources:General,Month%>"></asp:ListItem>
                    <asp:ListItem Value="1" Text="<%$ Resources:MonthResource,January%>" />
                    <asp:ListItem Value="2" Text="<%$ Resources:MonthResource,February%>" />
                    <asp:ListItem Value="3" Text="<%$ Resources:MonthResource,March%>" />
                    <asp:ListItem Value="4" Text="<%$ Resources:MonthResource,April%>" />
                    <asp:ListItem Value="5" Text="<%$ Resources:MonthResource,May%>" />
                    <asp:ListItem Value="6" Text="<%$ Resources:MonthResource,June%>" />
                    <asp:ListItem Value="7" Text="<%$ Resources:MonthResource,July%>" />
                    <asp:ListItem Value="8" Text="<%$ Resources:MonthResource,August%>" />
                    <asp:ListItem Value="9" Text="<%$ Resources:MonthResource,September%>" />
                    <asp:ListItem Value="10" Text="<%$ Resources:MonthResource,October%>" />
                    <asp:ListItem Value="11" Text="<%$ Resources:MonthResource,November%>" />
                    <asp:ListItem Value="12" Text="<%$ Resources:MonthResource,December%>" />
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvMonth" ControlToValidate="ddlMonth" runat="server" CssClass="validationError"
                    ValidationGroup="profile" ErrorMessage="" InitialValue="-1"></asp:RequiredFieldValidator>
                <asp:DropDownList ID="ddlYear" runat="server" CssClass="pw-row-4">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvYear" ControlToValidate="ddlYear" runat="server" CssClass="validationError"
                    ValidationGroup="profile" ErrorMessage="" InitialValue="-1"></asp:RequiredFieldValidator>
                <div class="pw-row-1">
                    <span style="color: #FF0004">*</span><%=GetGlobalResourceObject("General", "Gender")%>:</div>
                <asp:DropDownList ID="ddlGender" runat="server" CssClass="pw-row-5">
                    <asp:ListItem Value="M" Text="<%$ Resources:General,Male%>" />
                    <asp:ListItem Value="F" Text="<%$ Resources:General,Female%>" />
                </asp:DropDownList>
                <div class="pw-row-1">
                    <span style="color: #FF0004">*</span><%=GetGlobalResourceObject("General", "Occupation")%>:</div>
                <asp:DropDownList ID="ddlOccupation" runat="server" CssClass="pw-row-6">
                </asp:DropDownList>
                <asp:RequiredFieldValidator ID="rfvOccupation" ControlToValidate="ddlOccupation" CssClass="validationError"
                    runat="server" ValidationGroup="profile" ErrorMessage="" InitialValue="-1"></asp:RequiredFieldValidator>
                    
                <%--<div class="pw-row-1">
                    <span style="color: #FF0004">*</span><%=GetGlobalResourceObject("General", "Password")%>:<br />
                </div>
                <div class="pw-col-1">
                    <asp:TextBox runat="server" ID="txtPassword" TextMode="Password"  CssClass="pw-fields" MaxLength="20"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="txtPassword" CssClass="validationError"
                        Display="Dynamic" ErrorMessage="" ValidationGroup="profile"></asp:RequiredFieldValidator>
                </div>--%>
                <div class="pw-col-1">
                    <asp:Button ID="btnSubmit" Text="<%$ Resources:General,Submit%>" runat="server" CssClass="ep-button"
                        OnClick="btnSubmit_Click" ToolTip="<%$ Resources:General,Submit%>"
                        ValidationGroup="profile" OnClientClick="LoadValidationErrorCss();if (Page_ClientValidate('profile')){this.removeAttribute('onmouseout');this.removeAttribute('onmouseup');this.className = 'ep-button-processing';}" />
                        <br />
                        
                </div>
            </div>
            <div class="pw-re-col-2">
                <img src="<%=GetGlobalResourceObject("ImageResource", "ImgDBDOICVerticalUrl")%>" width="222" height="240" alt="" />
            </div>
        </div>
        <div id="divHiddenMonths" style="display: none;">
            <input runat="server" id="lblJan" type="hidden" value="<%$ Resources:MonthResource, January%>" />
            <input runat="server" id="lblFeb" type="hidden" value="<%$ Resources:MonthResource, February%>" />
            <input runat="server" id="lblMar" type="hidden" value="<%$ Resources:MonthResource, March%>" />
            <input runat="server" id="lblApr" type="hidden" value="<%$ Resources:MonthResource, April%>" />
            <input runat="server" id="lblMay" type="hidden" value="<%$ Resources:MonthResource, May%>" />
            <input runat="server" id="lblJun" type="hidden" value="<%$ Resources:MonthResource, June%>" />
            <input runat="server" id="lblJul" type="hidden" value="<%$ Resources:MonthResource, July%>" />
            <input runat="server" id="lblAug" type="hidden" value="<%$ Resources:MonthResource, August%>" />
            <input runat="server" id="lblSep" type="hidden" value="<%$ Resources:MonthResource, September%>" />
            <input runat="server" id="lblOct" type="hidden" value="<%$ Resources:MonthResource, October%>" />
            <input runat="server" id="lblNov" type="hidden" value="<%$ Resources:MonthResource, November%>" />
            <input runat="server" id="lblDec" type="hidden" value="<%$ Resources:MonthResource, December%>" />
            <input runat="server" id="lblCultureInfo" type="hidden" />
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpBody" runat="Server">
</asp:Content>
